/**
 */
package sdmakerz_v1.coresyntax.sDMakerV1.impl;

import java.util.Collection;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

import org.eclipse.emf.ecore.impl.ENotificationImpl;

import org.eclipse.emf.ecore.util.EDataTypeEList;

import sdmakerz_v1.coresyntax.sDMakerV1.Config;
import sdmakerz_v1.coresyntax.sDMakerV1.DoubleExp;
import sdmakerz_v1.coresyntax.sDMakerV1.IntegerExp;
import sdmakerz_v1.coresyntax.sDMakerV1.SDMakerV1Package;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Config</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link sdmakerz_v1.coresyntax.sDMakerV1.impl.ConfigImpl#getName <em>Name</em>}</li>
 *   <li>{@link sdmakerz_v1.coresyntax.sDMakerV1.impl.ConfigImpl#getCmds <em>Cmds</em>}</li>
 *   <li>{@link sdmakerz_v1.coresyntax.sDMakerV1.impl.ConfigImpl#getPrecisionNb <em>Precision Nb</em>}</li>
 *   <li>{@link sdmakerz_v1.coresyntax.sDMakerV1.impl.ConfigImpl#getPrecisionTracesCompletes <em>Precision Traces Completes</em>}</li>
 *   <li>{@link sdmakerz_v1.coresyntax.sDMakerV1.impl.ConfigImpl#getRecallNb <em>Recall Nb</em>}</li>
 *   <li>{@link sdmakerz_v1.coresyntax.sDMakerV1.impl.ConfigImpl#getRecallUseUniformTraces <em>Recall Use Uniform Traces</em>}</li>
 *   <li>{@link sdmakerz_v1.coresyntax.sDMakerV1.impl.ConfigImpl#getRecallTracesCompletes <em>Recall Traces Completes</em>}</li>
 *   <li>{@link sdmakerz_v1.coresyntax.sDMakerV1.impl.ConfigImpl#getTailleTracesNbUniformes <em>Taille Traces Nb Uniformes</em>}</li>
 *   <li>{@link sdmakerz_v1.coresyntax.sDMakerV1.impl.ConfigImpl#getGlobalProbInAlt <em>Global Prob In Alt</em>}</li>
 *   <li>{@link sdmakerz_v1.coresyntax.sDMakerV1.impl.ConfigImpl#getProbContinueLoop <em>Prob Continue Loop</em>}</li>
 *   <li>{@link sdmakerz_v1.coresyntax.sDMakerV1.impl.ConfigImpl#getProbExecOpt <em>Prob Exec Opt</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class ConfigImpl extends ElementImpl implements Config
{
  /**
   * The default value of the '{@link #getName() <em>Name</em>}' attribute.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getName()
   * @generated
   * @ordered
   */
  protected static final String NAME_EDEFAULT = null;

  /**
   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getName()
   * @generated
   * @ordered
   */
  protected String name = NAME_EDEFAULT;

  /**
   * The cached value of the '{@link #getCmds() <em>Cmds</em>}' attribute list.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getCmds()
   * @generated
   * @ordered
   */
  protected EList<String> cmds;

  /**
   * The cached value of the '{@link #getPrecisionNb() <em>Precision Nb</em>}' containment reference.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getPrecisionNb()
   * @generated
   * @ordered
   */
  protected IntegerExp precisionNb;

  /**
   * The default value of the '{@link #getPrecisionTracesCompletes() <em>Precision Traces Completes</em>}' attribute.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getPrecisionTracesCompletes()
   * @generated
   * @ordered
   */
  protected static final String PRECISION_TRACES_COMPLETES_EDEFAULT = null;

  /**
   * The cached value of the '{@link #getPrecisionTracesCompletes() <em>Precision Traces Completes</em>}' attribute.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getPrecisionTracesCompletes()
   * @generated
   * @ordered
   */
  protected String precisionTracesCompletes = PRECISION_TRACES_COMPLETES_EDEFAULT;

  /**
   * The default value of the '{@link #getRecallNb() <em>Recall Nb</em>}' attribute.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getRecallNb()
   * @generated
   * @ordered
   */
  protected static final int RECALL_NB_EDEFAULT = 0;

  /**
   * The cached value of the '{@link #getRecallNb() <em>Recall Nb</em>}' attribute.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getRecallNb()
   * @generated
   * @ordered
   */
  protected int recallNb = RECALL_NB_EDEFAULT;

  /**
   * The default value of the '{@link #getRecallUseUniformTraces() <em>Recall Use Uniform Traces</em>}' attribute.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getRecallUseUniformTraces()
   * @generated
   * @ordered
   */
  protected static final String RECALL_USE_UNIFORM_TRACES_EDEFAULT = null;

  /**
   * The cached value of the '{@link #getRecallUseUniformTraces() <em>Recall Use Uniform Traces</em>}' attribute.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getRecallUseUniformTraces()
   * @generated
   * @ordered
   */
  protected String recallUseUniformTraces = RECALL_USE_UNIFORM_TRACES_EDEFAULT;

  /**
   * The default value of the '{@link #getRecallTracesCompletes() <em>Recall Traces Completes</em>}' attribute.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getRecallTracesCompletes()
   * @generated
   * @ordered
   */
  protected static final String RECALL_TRACES_COMPLETES_EDEFAULT = null;

  /**
   * The cached value of the '{@link #getRecallTracesCompletes() <em>Recall Traces Completes</em>}' attribute.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getRecallTracesCompletes()
   * @generated
   * @ordered
   */
  protected String recallTracesCompletes = RECALL_TRACES_COMPLETES_EDEFAULT;

  /**
   * The cached value of the '{@link #getTailleTracesNbUniformes() <em>Taille Traces Nb Uniformes</em>}' containment reference.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getTailleTracesNbUniformes()
   * @generated
   * @ordered
   */
  protected IntegerExp tailleTracesNbUniformes;

  /**
   * The cached value of the '{@link #getGlobalProbInAlt() <em>Global Prob In Alt</em>}' containment reference.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getGlobalProbInAlt()
   * @generated
   * @ordered
   */
  protected DoubleExp globalProbInAlt;

  /**
   * The cached value of the '{@link #getProbContinueLoop() <em>Prob Continue Loop</em>}' containment reference.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getProbContinueLoop()
   * @generated
   * @ordered
   */
  protected DoubleExp probContinueLoop;

  /**
   * The cached value of the '{@link #getProbExecOpt() <em>Prob Exec Opt</em>}' containment reference.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getProbExecOpt()
   * @generated
   * @ordered
   */
  protected DoubleExp probExecOpt;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  protected ConfigImpl()
  {
    super();
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  protected EClass eStaticClass()
  {
    return SDMakerV1Package.Literals.CONFIG;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String getName()
  {
    return name;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setName(String newName)
  {
    String oldName = name;
    name = newName;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, SDMakerV1Package.CONFIG__NAME, oldName, name));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EList<String> getCmds()
  {
    if (cmds == null)
    {
      cmds = new EDataTypeEList<String>(String.class, this, SDMakerV1Package.CONFIG__CMDS);
    }
    return cmds;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public IntegerExp getPrecisionNb()
  {
    return precisionNb;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetPrecisionNb(IntegerExp newPrecisionNb, NotificationChain msgs)
  {
    IntegerExp oldPrecisionNb = precisionNb;
    precisionNb = newPrecisionNb;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SDMakerV1Package.CONFIG__PRECISION_NB, oldPrecisionNb, newPrecisionNb);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setPrecisionNb(IntegerExp newPrecisionNb)
  {
    if (newPrecisionNb != precisionNb)
    {
      NotificationChain msgs = null;
      if (precisionNb != null)
        msgs = ((InternalEObject)precisionNb).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SDMakerV1Package.CONFIG__PRECISION_NB, null, msgs);
      if (newPrecisionNb != null)
        msgs = ((InternalEObject)newPrecisionNb).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SDMakerV1Package.CONFIG__PRECISION_NB, null, msgs);
      msgs = basicSetPrecisionNb(newPrecisionNb, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, SDMakerV1Package.CONFIG__PRECISION_NB, newPrecisionNb, newPrecisionNb));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String getPrecisionTracesCompletes()
  {
    return precisionTracesCompletes;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setPrecisionTracesCompletes(String newPrecisionTracesCompletes)
  {
    String oldPrecisionTracesCompletes = precisionTracesCompletes;
    precisionTracesCompletes = newPrecisionTracesCompletes;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, SDMakerV1Package.CONFIG__PRECISION_TRACES_COMPLETES, oldPrecisionTracesCompletes, precisionTracesCompletes));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public int getRecallNb()
  {
    return recallNb;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setRecallNb(int newRecallNb)
  {
    int oldRecallNb = recallNb;
    recallNb = newRecallNb;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, SDMakerV1Package.CONFIG__RECALL_NB, oldRecallNb, recallNb));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String getRecallUseUniformTraces()
  {
    return recallUseUniformTraces;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setRecallUseUniformTraces(String newRecallUseUniformTraces)
  {
    String oldRecallUseUniformTraces = recallUseUniformTraces;
    recallUseUniformTraces = newRecallUseUniformTraces;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, SDMakerV1Package.CONFIG__RECALL_USE_UNIFORM_TRACES, oldRecallUseUniformTraces, recallUseUniformTraces));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String getRecallTracesCompletes()
  {
    return recallTracesCompletes;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setRecallTracesCompletes(String newRecallTracesCompletes)
  {
    String oldRecallTracesCompletes = recallTracesCompletes;
    recallTracesCompletes = newRecallTracesCompletes;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, SDMakerV1Package.CONFIG__RECALL_TRACES_COMPLETES, oldRecallTracesCompletes, recallTracesCompletes));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public IntegerExp getTailleTracesNbUniformes()
  {
    return tailleTracesNbUniformes;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetTailleTracesNbUniformes(IntegerExp newTailleTracesNbUniformes, NotificationChain msgs)
  {
    IntegerExp oldTailleTracesNbUniformes = tailleTracesNbUniformes;
    tailleTracesNbUniformes = newTailleTracesNbUniformes;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SDMakerV1Package.CONFIG__TAILLE_TRACES_NB_UNIFORMES, oldTailleTracesNbUniformes, newTailleTracesNbUniformes);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setTailleTracesNbUniformes(IntegerExp newTailleTracesNbUniformes)
  {
    if (newTailleTracesNbUniformes != tailleTracesNbUniformes)
    {
      NotificationChain msgs = null;
      if (tailleTracesNbUniformes != null)
        msgs = ((InternalEObject)tailleTracesNbUniformes).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SDMakerV1Package.CONFIG__TAILLE_TRACES_NB_UNIFORMES, null, msgs);
      if (newTailleTracesNbUniformes != null)
        msgs = ((InternalEObject)newTailleTracesNbUniformes).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SDMakerV1Package.CONFIG__TAILLE_TRACES_NB_UNIFORMES, null, msgs);
      msgs = basicSetTailleTracesNbUniformes(newTailleTracesNbUniformes, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, SDMakerV1Package.CONFIG__TAILLE_TRACES_NB_UNIFORMES, newTailleTracesNbUniformes, newTailleTracesNbUniformes));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public DoubleExp getGlobalProbInAlt()
  {
    return globalProbInAlt;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetGlobalProbInAlt(DoubleExp newGlobalProbInAlt, NotificationChain msgs)
  {
    DoubleExp oldGlobalProbInAlt = globalProbInAlt;
    globalProbInAlt = newGlobalProbInAlt;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SDMakerV1Package.CONFIG__GLOBAL_PROB_IN_ALT, oldGlobalProbInAlt, newGlobalProbInAlt);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setGlobalProbInAlt(DoubleExp newGlobalProbInAlt)
  {
    if (newGlobalProbInAlt != globalProbInAlt)
    {
      NotificationChain msgs = null;
      if (globalProbInAlt != null)
        msgs = ((InternalEObject)globalProbInAlt).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SDMakerV1Package.CONFIG__GLOBAL_PROB_IN_ALT, null, msgs);
      if (newGlobalProbInAlt != null)
        msgs = ((InternalEObject)newGlobalProbInAlt).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SDMakerV1Package.CONFIG__GLOBAL_PROB_IN_ALT, null, msgs);
      msgs = basicSetGlobalProbInAlt(newGlobalProbInAlt, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, SDMakerV1Package.CONFIG__GLOBAL_PROB_IN_ALT, newGlobalProbInAlt, newGlobalProbInAlt));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public DoubleExp getProbContinueLoop()
  {
    return probContinueLoop;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetProbContinueLoop(DoubleExp newProbContinueLoop, NotificationChain msgs)
  {
    DoubleExp oldProbContinueLoop = probContinueLoop;
    probContinueLoop = newProbContinueLoop;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SDMakerV1Package.CONFIG__PROB_CONTINUE_LOOP, oldProbContinueLoop, newProbContinueLoop);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setProbContinueLoop(DoubleExp newProbContinueLoop)
  {
    if (newProbContinueLoop != probContinueLoop)
    {
      NotificationChain msgs = null;
      if (probContinueLoop != null)
        msgs = ((InternalEObject)probContinueLoop).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SDMakerV1Package.CONFIG__PROB_CONTINUE_LOOP, null, msgs);
      if (newProbContinueLoop != null)
        msgs = ((InternalEObject)newProbContinueLoop).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SDMakerV1Package.CONFIG__PROB_CONTINUE_LOOP, null, msgs);
      msgs = basicSetProbContinueLoop(newProbContinueLoop, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, SDMakerV1Package.CONFIG__PROB_CONTINUE_LOOP, newProbContinueLoop, newProbContinueLoop));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public DoubleExp getProbExecOpt()
  {
    return probExecOpt;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetProbExecOpt(DoubleExp newProbExecOpt, NotificationChain msgs)
  {
    DoubleExp oldProbExecOpt = probExecOpt;
    probExecOpt = newProbExecOpt;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SDMakerV1Package.CONFIG__PROB_EXEC_OPT, oldProbExecOpt, newProbExecOpt);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setProbExecOpt(DoubleExp newProbExecOpt)
  {
    if (newProbExecOpt != probExecOpt)
    {
      NotificationChain msgs = null;
      if (probExecOpt != null)
        msgs = ((InternalEObject)probExecOpt).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SDMakerV1Package.CONFIG__PROB_EXEC_OPT, null, msgs);
      if (newProbExecOpt != null)
        msgs = ((InternalEObject)newProbExecOpt).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SDMakerV1Package.CONFIG__PROB_EXEC_OPT, null, msgs);
      msgs = basicSetProbExecOpt(newProbExecOpt, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, SDMakerV1Package.CONFIG__PROB_EXEC_OPT, newProbExecOpt, newProbExecOpt));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
  {
    switch (featureID)
    {
      case SDMakerV1Package.CONFIG__PRECISION_NB:
        return basicSetPrecisionNb(null, msgs);
      case SDMakerV1Package.CONFIG__TAILLE_TRACES_NB_UNIFORMES:
        return basicSetTailleTracesNbUniformes(null, msgs);
      case SDMakerV1Package.CONFIG__GLOBAL_PROB_IN_ALT:
        return basicSetGlobalProbInAlt(null, msgs);
      case SDMakerV1Package.CONFIG__PROB_CONTINUE_LOOP:
        return basicSetProbContinueLoop(null, msgs);
      case SDMakerV1Package.CONFIG__PROB_EXEC_OPT:
        return basicSetProbExecOpt(null, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public Object eGet(int featureID, boolean resolve, boolean coreType)
  {
    switch (featureID)
    {
      case SDMakerV1Package.CONFIG__NAME:
        return getName();
      case SDMakerV1Package.CONFIG__CMDS:
        return getCmds();
      case SDMakerV1Package.CONFIG__PRECISION_NB:
        return getPrecisionNb();
      case SDMakerV1Package.CONFIG__PRECISION_TRACES_COMPLETES:
        return getPrecisionTracesCompletes();
      case SDMakerV1Package.CONFIG__RECALL_NB:
        return getRecallNb();
      case SDMakerV1Package.CONFIG__RECALL_USE_UNIFORM_TRACES:
        return getRecallUseUniformTraces();
      case SDMakerV1Package.CONFIG__RECALL_TRACES_COMPLETES:
        return getRecallTracesCompletes();
      case SDMakerV1Package.CONFIG__TAILLE_TRACES_NB_UNIFORMES:
        return getTailleTracesNbUniformes();
      case SDMakerV1Package.CONFIG__GLOBAL_PROB_IN_ALT:
        return getGlobalProbInAlt();
      case SDMakerV1Package.CONFIG__PROB_CONTINUE_LOOP:
        return getProbContinueLoop();
      case SDMakerV1Package.CONFIG__PROB_EXEC_OPT:
        return getProbExecOpt();
    }
    return super.eGet(featureID, resolve, coreType);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @SuppressWarnings("unchecked")
  @Override
  public void eSet(int featureID, Object newValue)
  {
    switch (featureID)
    {
      case SDMakerV1Package.CONFIG__NAME:
        setName((String)newValue);
        return;
      case SDMakerV1Package.CONFIG__CMDS:
        getCmds().clear();
        getCmds().addAll((Collection<? extends String>)newValue);
        return;
      case SDMakerV1Package.CONFIG__PRECISION_NB:
        setPrecisionNb((IntegerExp)newValue);
        return;
      case SDMakerV1Package.CONFIG__PRECISION_TRACES_COMPLETES:
        setPrecisionTracesCompletes((String)newValue);
        return;
      case SDMakerV1Package.CONFIG__RECALL_NB:
        setRecallNb((Integer)newValue);
        return;
      case SDMakerV1Package.CONFIG__RECALL_USE_UNIFORM_TRACES:
        setRecallUseUniformTraces((String)newValue);
        return;
      case SDMakerV1Package.CONFIG__RECALL_TRACES_COMPLETES:
        setRecallTracesCompletes((String)newValue);
        return;
      case SDMakerV1Package.CONFIG__TAILLE_TRACES_NB_UNIFORMES:
        setTailleTracesNbUniformes((IntegerExp)newValue);
        return;
      case SDMakerV1Package.CONFIG__GLOBAL_PROB_IN_ALT:
        setGlobalProbInAlt((DoubleExp)newValue);
        return;
      case SDMakerV1Package.CONFIG__PROB_CONTINUE_LOOP:
        setProbContinueLoop((DoubleExp)newValue);
        return;
      case SDMakerV1Package.CONFIG__PROB_EXEC_OPT:
        setProbExecOpt((DoubleExp)newValue);
        return;
    }
    super.eSet(featureID, newValue);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public void eUnset(int featureID)
  {
    switch (featureID)
    {
      case SDMakerV1Package.CONFIG__NAME:
        setName(NAME_EDEFAULT);
        return;
      case SDMakerV1Package.CONFIG__CMDS:
        getCmds().clear();
        return;
      case SDMakerV1Package.CONFIG__PRECISION_NB:
        setPrecisionNb((IntegerExp)null);
        return;
      case SDMakerV1Package.CONFIG__PRECISION_TRACES_COMPLETES:
        setPrecisionTracesCompletes(PRECISION_TRACES_COMPLETES_EDEFAULT);
        return;
      case SDMakerV1Package.CONFIG__RECALL_NB:
        setRecallNb(RECALL_NB_EDEFAULT);
        return;
      case SDMakerV1Package.CONFIG__RECALL_USE_UNIFORM_TRACES:
        setRecallUseUniformTraces(RECALL_USE_UNIFORM_TRACES_EDEFAULT);
        return;
      case SDMakerV1Package.CONFIG__RECALL_TRACES_COMPLETES:
        setRecallTracesCompletes(RECALL_TRACES_COMPLETES_EDEFAULT);
        return;
      case SDMakerV1Package.CONFIG__TAILLE_TRACES_NB_UNIFORMES:
        setTailleTracesNbUniformes((IntegerExp)null);
        return;
      case SDMakerV1Package.CONFIG__GLOBAL_PROB_IN_ALT:
        setGlobalProbInAlt((DoubleExp)null);
        return;
      case SDMakerV1Package.CONFIG__PROB_CONTINUE_LOOP:
        setProbContinueLoop((DoubleExp)null);
        return;
      case SDMakerV1Package.CONFIG__PROB_EXEC_OPT:
        setProbExecOpt((DoubleExp)null);
        return;
    }
    super.eUnset(featureID);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public boolean eIsSet(int featureID)
  {
    switch (featureID)
    {
      case SDMakerV1Package.CONFIG__NAME:
        return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
      case SDMakerV1Package.CONFIG__CMDS:
        return cmds != null && !cmds.isEmpty();
      case SDMakerV1Package.CONFIG__PRECISION_NB:
        return precisionNb != null;
      case SDMakerV1Package.CONFIG__PRECISION_TRACES_COMPLETES:
        return PRECISION_TRACES_COMPLETES_EDEFAULT == null ? precisionTracesCompletes != null : !PRECISION_TRACES_COMPLETES_EDEFAULT.equals(precisionTracesCompletes);
      case SDMakerV1Package.CONFIG__RECALL_NB:
        return recallNb != RECALL_NB_EDEFAULT;
      case SDMakerV1Package.CONFIG__RECALL_USE_UNIFORM_TRACES:
        return RECALL_USE_UNIFORM_TRACES_EDEFAULT == null ? recallUseUniformTraces != null : !RECALL_USE_UNIFORM_TRACES_EDEFAULT.equals(recallUseUniformTraces);
      case SDMakerV1Package.CONFIG__RECALL_TRACES_COMPLETES:
        return RECALL_TRACES_COMPLETES_EDEFAULT == null ? recallTracesCompletes != null : !RECALL_TRACES_COMPLETES_EDEFAULT.equals(recallTracesCompletes);
      case SDMakerV1Package.CONFIG__TAILLE_TRACES_NB_UNIFORMES:
        return tailleTracesNbUniformes != null;
      case SDMakerV1Package.CONFIG__GLOBAL_PROB_IN_ALT:
        return globalProbInAlt != null;
      case SDMakerV1Package.CONFIG__PROB_CONTINUE_LOOP:
        return probContinueLoop != null;
      case SDMakerV1Package.CONFIG__PROB_EXEC_OPT:
        return probExecOpt != null;
    }
    return super.eIsSet(featureID);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public String toString()
  {
    if (eIsProxy()) return super.toString();

    StringBuffer result = new StringBuffer(super.toString());
    result.append(" (name: ");
    result.append(name);
    result.append(", cmds: ");
    result.append(cmds);
    result.append(", precisionTracesCompletes: ");
    result.append(precisionTracesCompletes);
    result.append(", recallNb: ");
    result.append(recallNb);
    result.append(", recallUseUniformTraces: ");
    result.append(recallUseUniformTraces);
    result.append(", recallTracesCompletes: ");
    result.append(recallTracesCompletes);
    result.append(')');
    return result.toString();
  }

} //ConfigImpl
